package com.yintao.ytframe.base.design.factory.normal.bo;

import lombok.Data;
import lombok.ToString;

import java.io.Serializable;

/**
 * @Description
 * @Author yintao12
 * @Date 2021/1/4 19:41
 * @Doc
 **/
@Data
public class AwardRes implements Serializable {

    private String code;

    private String msg;

    public static AwardRes buildSuccessMsg() {
        AwardRes awardRes = new AwardRes();
        awardRes.setCode("0000");
        awardRes.setMsg("发放成功");
        return awardRes;
    }

    public static AwardRes buildErrorMsg() {
        AwardRes awardRes = new AwardRes();
        awardRes.setCode("0001");
        awardRes.setMsg("发放失败");
        return awardRes;
    }

}
